<?php
	class RefreshCacheAction extends Action{
		
		function index(){
			$this->display();
		}
		
		/**
		 * 刷新数据字典缓存
		 */
		function refreshDict(){
			if(strtoupper($_SERVER["REQUEST_METHOD"]) != 'POST'){
				$this->error('请勿在外部提交!');
			}
			
			$dict = D("Dict");
			$dict->refreshDict();
			
			$this->assign("url",__APP__.'/RefreshCache/index');
			$this->assign("message",'数据字典缓存刷新成功！');
			$this->success('数据字典缓存刷新成功！');
		}
	}
?>